% Copyright 2012 by Till Tantau and Max Dohse
% Copyright 2012,2015 by Vedran Mileti\'c, Joseph Wright
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%
% See the file LICENSE.md for more details.
% 
% This theme is based on the crane theme by Till Tantau.
% the OVERLYSTYLISH option is taken from the albatross theme
%
% The colors are those of the Monarca/Monarch butterfly.
% http://en.wikipedia.org/wiki/Monarch_butterfly
% The Monarch is famous for its southward migration
% and northward return in summer from Canada to Mexico,
% which spans the life of three to four generations of the butterfly.
%

\definecolor{craneorange}{RGB}{252,187,6}
\definecolor{craneblue}{RGB}{4,6,76}

\DeclareOption{overlystylish}{
	\def\beamer@cta@do{\setbeamertemplate{background canvas}[vertical shading]%
		[bottom=craneorange,top=craneorange,middle=yellow]
	}
}
\ProcessOptions

\@ifundefined{beamer@cta@do}{}{\beamer@cta@do}

\mode<presentation>

\setbeamercolor{normal text}{fg=black,bg=craneorange}

\setbeamercolor{structure}{fg=black}

\setbeamercolor{palette primary}{fg=craneorange!75,bg=black}
\setbeamercolor{palette secondary}{fg=black,bg=craneorange}
\setbeamercolor{palette tertiary}{fg=craneorange!75,bg=black}
\setbeamercolor{palette quaternary}{fg=black,bg=white}

\setbeamercolor{titlelike}{parent=palette quaternary}

\setbeamercolor{block title}{fg=black,bg=white}
\setbeamercolor{block title alerted}{use=alerted text,fg=black,bg=alerted text.fg!75!bg}
\setbeamercolor{block title example}{use=example text,fg=black,bg=example text.fg!75!bg}

\setbeamercolor{block body}{parent=normal text,use=block title,bg=block title.bg!25!bg}
\setbeamercolor{block body alerted}{parent=normal text,use=block title alerted,bg=block title alerted.bg!25!bg}
\setbeamercolor{block body example}{parent=normal text,use=block title example,bg=block title example.bg!25!bg}

\setbeamercolor{sidebar}{bg=craneorange!90}%70
  
\setbeamercolor{palette sidebar primary}{fg=black}
\setbeamercolor{palette sidebar secondary}{fg=black!75}
\setbeamercolor{palette sidebar tertiary}{fg=black!75}
\setbeamercolor{palette sidebar quaternary}{fg=black}

\setbeamercolor*{separation line}{}
\setbeamercolor*{fine separation line}{}

\mode
<all>
